﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Globalization;
using System.Threading;
using BulldogCMS.Core.Storage;
using BulldogCMS.Core.Runtime;

namespace BulldogCMS.Core.MVC
{
    public class RequestContextActionFilter : ActionFilterAttribute
    {
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            //RequestContext requestContext = new RequestContext();

            //string hostName = filterContext.HttpContext.Request.Url.Host;
            ////requestContext.CurrentSite =       Context.Application.Sites.Where(p => p.HostName.Equals(hostName, StringComparison.InvariantCultureIgnoreCase)).FirstOrDefault();
            //requestContext.Language =            CultureInfo.GetCultureInfo(requestContext.CurrentSite.Language);

            //filterContext.HttpContext.Items["requestContext"] = requestContext;
        }
    }
}